/*
 * @Author: Null
 * @Date: 2021-12-13 11:03:44
 * @Description: 登录模块入口文件
 */

import http from '@/serve/requestMethods.js'

export default {
  // 登录
  login: (params) => http.post('/admin/login', params).then(res => res),

  // 注册
  register: (params) => http.post('/admin/register', params).then(res => res),

  // 发送邮箱验证码
  sendEMailCode: (params) => http.post('/admin/sendEMailCode', params).then(res => res),

  // 发送邮箱验证码重置密码
  resetPwdByEmail: (params) => http.post('/admin/resetPwdByEmail', params).then(res => res),

  // 登出接口
  logOut: data => http.post('/admin/logOut', data).then(res => res)
}
